cmake_minimum_required(VERSION 3.5)
project(flashros_inference)

add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
  cv_bridge
  image_transport
  flashros_commons
  custom_msg
  roscpp
  std_msgs
)
catkin_package()

set(CMAKE_PREFIX_PATH /usr/local/share/cmake)
find_package(flashai REQUIRED)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${flashai_INCLUDE_DIRS}
)

file(GLOB SRC_FILES src/*.cc)
add_library(flashros_inference_lib ${SRC_FILES})
target_link_libraries(flashros_inference_lib ${catkin_LIBRARIES} ${flashai_LIBRARIES})

add_definitions(-DENABLE_TENSORRT)

# # detection_inference
# add_definitions(-DENABLE_HYPERPR)
# add_executable(hyperpr_test demo/hyperpr_test.cc)
# target_link_libraries(hyperpr_test flashros_inference_lib)

# detection_inference
add_executable(detection_inference demo/detection_inference.cc)
target_link_libraries(detection_inference flashros_inference_lib)

# detection_inference
add_executable(detection_pipeline_inference demo/detection_pipeline_inference.cc)
target_link_libraries(detection_pipeline_inference flashros_inference_lib)

# laser inference
add_executable(laser_inference demo/laser_inference.cc)
target_link_libraries(laser_inference flashros_inference_lib)

